package com.artron.mediaartron.base;


import com.artron.baselib.base.BaseApplication;
import com.artron.mediaartron.data.config.AppProfile;
import com.umeng.analytics.MobclickAgent;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;

/**
 * 作者：EasonCheng on 2017/8/7 10:41
 * 邮箱：chengqi@artron.net
 */

public class AppBaseApplication extends BaseApplication {


    @Override
    public void onCreate() {
        super.onCreate();
        PlatformConfig.setWeixin("wx23a1f7f291ef4b3d","f4c7f1a0b6ee9404d4175ec77e79e09a");
//        PlatformConfig.setQQZone("1105013800","UypNPuYoS8wEFDfm");
        PlatformConfig.setQQZone("1106463599","CEhdBdEGsHyqV11A");
        PlatformConfig.setSinaWeibo("3766209782","a545946953bdbeebe3d0749c3403e2bc","http://sns.whalecioud.com");
        UMShareAPI.get(this);
//        SDKInitializer.initialize(getApplicationContext());
//        QbSdk.PreInitCallback cb = new QbSdk.PreInitCallback() {
//
//            @Override
//            public void onViewInitFinished(boolean arg0) {
//                //x5內核初始化完成的回调，为true表示x5内核加载成功，否则表示x5内核加载失败，会自动切换到系统内核。
//                Log.d("app", " onViewInitFinished is " + arg0);
//            }
//
//            @Override
//            public void onCoreInitFinished() {
//            }
//        };
//        //x5内核初始化接口
//        QbSdk.initX5Environment(getApplicationContext(), cb);
        AppProfile.init(this);
        MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);

    }


}
